home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Mousetools
/
PWKeys
/
SetPWkeys2.0.doc
< prev
next >
Wrap
Text File
|
1996-09-26
|
11KB
|
300 lines
//
\\ // SetPWkeys V2.0
\//
1991
by
Preben Nielsen
Note: Below I will talk of both SetPWkeys (off course) AND PWkeys. You
should also take a look at the PWkeys documentation (perhaps first).
WHATS NEW
SetPWkeys has been updated to handle the new functions and features
which have been added to the new version of PWkeys.
WHAT IS SETPWKEYS ?
SetPWkeys is an program that lets you define key-function bindings
etc. for use with the PWkeys program. So if you don't use PWkeys then
you won't have any use for SetPWkeys.
HOW TO START SETPWKEYS
From CLI : Type 'SetPWkeys' and press RETURN.
There is NO need to use 'RUN', 'RUNBACK', 'ARUN' etc.
SetPWkeys is auto-detaching when run from CLI (i.e. It
won't prevent you from closing the CLI-window).
From Workbench: Double-click on the SetPWkeys icon.
WHAT CAN SETPWKEYS DO ?
PWkeys lets you perform 25 functions on windows, screens etc.
These functions are:
Move-Window-To-Top-Of-Screen
Move-Window-To-Bottom-Of-Screen
Move-Window-To-Left-Side-Of-Screen
Move-Window-To-Right-Side-Of-Screen
Place-Window-In-Upper-Left-Corner-Of-Screen
Place-Window-In-Lower-Left-Corner-Of-Screen
Place-Window-In-Upper-Right-Corner-Of-Screen
Place-Window-In-Lower-Right-Corner-Of-Screen
Place-Window-In-Center-Of-Screen
Move-Window-To-Front
Move_Window-To-Back
Move-Backmost-Window-To-Front
Move_Frontmost-Window-To-Back
Activate-Previous-Window
Activate-Next-Window
Minimize-Window (only windows with a SIZING-gadget)
Maximize-Window (only windows with a SIZING-gadget)
Refresh-Window
Move-Backmost-Screen-To-Front
Move-Frontmost-Screen-To-Back
Subtract-Bitplane-From-Screen (Not HAM-screens)
Add-Bitplane-To-Screen (Within limits)
Toggle-Input-Lock
Toggle Fast-Mouse
Toggle Sun-Mouse
By default PWkeys binds these functions to the following hotkeys:
LSHIFT-LAMIGA-KP1 : Place-Window-In-Upper-Left-Corner-Of-Screen
LSHIFT-LAMIGA-KP2 : Move-Window-To-Bottom-Of-Screen
LSHIFT-LAMIGA-KP3 : Place-Window-In-Lower-Right-Corner-Of-Screen
LSHIFT-LAMIGA-KP4 : Move-Window-To-Left-Side-Of-Screen
LSHIFT-LAMIGA-KP5 : Place-Window-In-Center-Of-Screen
LSHIFT-LAMIGA-KP6 : Move-Window-To-Right-Side-Of-Screen
LSHIFT-LAMIGA-KP7 : Place-Window-In-Upper-Left-Corner-Of-Screen
LSHIFT-LAMIGA-KP8 : Move-Window-To-Top-Of-Screen
LSHIFT-LAMIGA-KP9 : Place-Window-In-Upper-Right-Corner-Of-Screen
LSHIFT LAMIGA-LEFTARROW : Activate-Previous-Window
LSHIFT LAMIGE-RIGHTARROW: Activate-Next-Window
LSHIFT-LAMIGA-DOWNARROW : Move-Window-To-Front
LSHIFT-LAMIGA-UPARROW : Move-Window-To-Back
LSHIFT-LAMIGA-TAB : Refresh-Window
LSHIFT-LAMIGA-F1 : Minimize-Window
LSHIFT-LAMIGA-F2 : Maximize-Window
LAMIGA-DOWNARROW : Move-Backmost-Window-To-Front
LAMIGA-UPARROW : Move-Frontmost-Window-To-Back
RSHIFT-RAMIGA-DOWNARROW : Move-Backmost-Screen-To-Front
RSHIFT-RAMIGA-UPARROW : Move-Frontmost-Screen-To-Back
RSHIFT-RAMIGA-F9 : Subtract-Bitplane-From-Screen
RSHIFT-RAMIGA-F10 : Add-Bitplane-To-Screen
LAMIGA-RAMIGA-BACKSPACE : Toggle-Input-Lock
LAMIGA-RAMIGA-DEL : Toggle-Fast-Mouse
LAMIGA-RAMIGA-HELP : Toggle-Sun-Mouse
where
LAMIGA means the left Amiga/Command key
RAMIGA means the right Amiga/Command key
LSHIFT means the left 'SHIFT' key
RSHIFT means the right 'SHIFT' key
HELP means the 'HELP' key
DEL means the 'DEL' key
BACKSPACE means the '<-' backspace key
TAB means the '->|' tabulator key
KP1 means '1' on the numeric keyboard
KP2 means '2' on the numeric keyboard
KP3 means '3' on the numeric keyboard
KP4 means '4' on the numeric keyboard
KP5 means '5' on the numeric keyboard
KP6 means '6' on the numeric keyboard
KP7 means '7' on the numeric keyboard
KP8 means '8' on the numeric keyboard
KP9 means '9' on the numeric keyboard
F1 means the 'F1' key
F2 means the 'F2' key
F9 means the 'F9' key
F10 means the 'F10' key
UPARROW means the arrow-up key
DOWNARROW means the arrow-down key
RIGHTARROW means the arrow-right key
LEFTARROW means the arrow-left key
SetPWkeys lets you define your own key-function bindings if you aren't
content with the ones above (this is nearly the sole reason for SetPWkeys
existence).
SOME TERM EXPLANATIONS
From now on, the term 'qualifier-key' will mean any one of these:
the CTRL-key
the CAPSLOCK-key
the left SHIFT-key
the right SHIFT-key
the left ALT-key
the right ALT-key
the left AMIGA-key
the right AMIGA-key
The term 'qualifiers' will mean any combination of qualifier-keys.
The term 'action-key' will mean a key that will trigger some action
(This could also be a qualifier-key).
The term 'hotkey' will mean a combinations zero or more qualifier-keys
together with ONE action-key.
LMB will mean the left mouse button.
WHAT THE SCREEN DISPLAYS
When SetPWkeys is started it will display a single-bitplane screen.
This screen contains:
1. In the upper left part of the screen is three boxes named 'Window',
'Screen' and 'Miscellaneous' containing 18, 4 and 3 function-names
respectively.
2. At the bottom of the screen is a picture of the entire KEYBOARD.
3. In the upper right corner of the KEYBOARD is a string-gadget used for
saving/loading settings to/from disk.
4. Just above the KEYBOARD is 5 string-gadgets used for setting mousespeed,
handler-priority, screen/mouse blanking timeout etc.
5. In the upper right part of the screen is 8 boolean-gadgets, which will
be described somewhere below.
6. The title-bar of the screen used for displaying messages to the
user (You perhaps).
THE FUNCTIONS
The names of the functions is contained in three boxes named 'Window',
'Screen' and 'Miscellaneous'. The 'Window' box contains 18 functions for
manipulating windows. The 'Screen' box contains 4 functions for manipulating
screens. The 'Miscellaneous' box currently contains 3 functions for turning
special facilities on and off.
To modify the key bindings of any of the 25 functions, simply click
the mouse on the name of the function. The function is now hilited
and the KEYBOARD at the bottom of the screen will display the current
hotkey. When a function that is not hilited appears unreadable it means
that the function is undefined (i.e. has no hotkey yet).
THE KEYBOARD
When you have selected one of the 25 functions, the keyboard will
display the current hotkey. The selected qualifier-keys will appear
ghosted (like the title-bar on inactive windows under kickstart 1.0-1.3),
and the selected action-key will appear hilited.
To select a qualifier-key hold down a SHIFT-key and click the LMB on
the key. To clear it simply hold down a SHIFT-key and click the LMB on
it again.
To select an action-key just click the LMB on it. To clear it simply
click the LMB on it again. A qualifier-key can also be used as an
action-key. It is possible to define a hotkey such as LALT-LSHIFT-RALT
(i.e. if you hold down the LALT and the LSHIFT, then pressing the RALT
would trigger some action).
THE GADGETS
The upper right part of the screen contains 8 boolean-gadgets:
» The 'Check' gadget which will check if there are any duplicates
amongst the hotkeys and tell you the result (but it won't show
you which). It will also check the values in the string-gadgets
to see if you have specified invalid values. 'Export' and 'Save'
will automatically use the facility and fail if anything is wrong.
» The 'Quit' gadget which ends SetPWkeys.
» The 'Undo' gadget which will undo any modifications you have made
on the keyboard since you clicked on the current function. This can
also undo a 'Clear'.
» The 'Clear' gadget which will undefine the current function by
wiping the keyboard clean (this can be recoved using 'Undo'). If
there is any undefined functions when you select 'Save' or 'Export',
these functions will be disabled (i.e. they accessible through PWkeys).
» The 'Import' gadget which will grab the hotkeys from the PWkeys handler
(if the handler is in memory). SetPWkeys will automatically try to
import the hotkeys when it is started. If it can't, it will display
the default hotkeys.
» The 'Export' gadget which will copy the hotkeys to the PWkeys handler
(if the handler is in memory).
» The 'Save' gadget which will save the hotkeys to a file (the file
can then be used by PWkeys). Type the name of the file in the
string-gadget in the upper right corner of the KEYBOARD. You must
type the the name BEFORE hitting 'Save'.
» The 'Load' gadget which will load hotkeys from a file (iff the
file has been created with this correct version of SetPWkeys). Type
the name of the file in the string-gadget in the upper right corner
of the KEYBOARD. You must type the the name BEFORE hitting 'Load'.
Just above the KEYBOARD are 5 string-gadgets which are:
» The 'Screen Off' gadget which lets you specify how long the keyboard
and mouse should be idle, before the screen blanks (default is 300
seconds, 0 disables this option).
» The 'Mouse Off' gadget which lets you specify how long the mouse should
be idle before it blanks (default is 5 seconds, 0 disables this option).
» The 'Priority' gadget which lets you specify the priority of the PWkeys
handler. This is usefull if you have other input-handlers installed
that causes conflict. You are allowed to specify 0-127 (127 means
highest priority) but you should not go below 51 if you don't want to
mess with intuition which lies at 50.
» The 'Speed' gadget which lets you specify the acceleration factor
applied to mouse-movements. This can be in the range 0-9 (Default
is 3)
» The 'Threshold' gadget which lets you specify the sensitivity
of the mouse-movements. Higher values means increased sensitivity.
This can be in the range 0-9 (Default is 1).
NOTE: Setting speed to 1 is in fact the same as having no acceleration at
all. Setting both speed AND threshold to 0 means that the mouse will
be immovable. Setting speed to 0 AND threshold > 0 in the mouse being
SLOWER than normal.
CREDITS:
Davide P. Cervone for his wKeys from Fisk-disk 128.
Matt Dillon for DMouse which showed me how to implement mouse-blanking
and a SunMouse.
=====================================================================
Send bug-reports, suggestions, comments etc. to:
///
/// Preben Nielsen
\\\ /// Oehlenschlægersgade 72 st. T.V.
\\\/// 1663 Copenhagen V.
\/// Denmark
I would also like to hear from you if you actually use PWkeys/SetPWkeys.